(function(){

var ccap = require('uns-ccap');
var captcha = ccap();
module.exports = {
	prefix:"/cap",
	get:{
		"/":function *(next){
			var ary = captcha.get();
			var text = ary[0];
			var buffer = ary[1];
			console.log(text);
			this.body = buffer;
			yield next;
		},
		"/html":function *(){
			this.body = "<img src='./'/>";
		}
	}
}

}());